<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店铺-商家新闻</title>
<link href="<?php echo $this->_webroot('/style/jq-ui/jquery-ui-1.8.18.custom.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/css.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('/style/content.css'); ?>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-1.7.1.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery-ui-1.8.18.custom.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/jquery.carouFredSel-5.5.0-packed.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/js.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot('script/content.js'); ?>"></script>
</head>

<body>

<psp:tags     htmlname='shop_topnav'  iconname='shoptopnav' />

<div class="head headpadding">
    <psp:tags     htmlname='shopsearch_default'  iconname='shopsearch_default' />
    <div class="clear"></div>
</div>
<!-- nav_wrap -->
<div class="nav_wrap">
	<div class="nav_logo"><img src="<?php if(!empty($SHOP['shop_template_img'])) {echo $SHOP['shop_template_img'];}else{echo $this->_webroot('photo/company_logo.jpg');}?>"  onerror="this.src='<?php echo $this->_webroot('photo/company_logo.jpg'); ?>'"  width="998" height="154" /></div>
    <div class="nav_content_wrap">
    	<img src="<?php echo $this->_webroot('images/nav_bg_left.gif'); ?>" width="5" height="38" class="nav_content_left" />
        <div class="nav_content">
        	<ul class="nav_list">
                <psp:tags     htmlname='shopnav_vip'  iconname='shopnav' />  
            </ul>
        </div>
        <img src="<?php echo $this->_webroot('images/nav_bg_right.gif'); ?>" width="5" height="38"  class="nav_content_left" />
        <div class="clear"></div>
    </div>
</div>
<!-- nav_wrap end -->

<div class="container margintop1">

	<!-- main_left -->
	<div id="main_left">
		<psp:tags     htmlname='shopleftmenu_vip'  iconname='shopleftmenu_vip' />	
        
        <!--  客服中心 -->
		<psp:tags     htmlname='shopservice_vip1'  iconname='shopservice_vip1' />
        <!--  客服中心 end -->
        
        <!-- 销量排行 -->
		<psp:tags     htmlname='shopsalesrank_vip'  iconname='shopsalesrank_vip' />	
        <!-- 销量排行 -->
        <div class="clear"></div>
        
        
    </div>
    <!-- main_left end -->

	<!-- main_right -->
	<div id="main_right">
    	<!-- 商家新闻 -->
		<div class="company_license_wrap">
            <div class="company_license_hd">
                <span class="company_license_label">商家文章</span>
            </div>
        	<div class="company_article_body">			
			<?php foreach($result as $value) { ?>
            	<div class="company_article_content">
					<a href=""  class="company_article_title" style="color:red;">[<?php echo $catinfo[$value['shoparticle']['cat_id']]['cat_name'];?>]</a><?php if($value['shoparticle']['is_blod'] && $value['shoparticle']['tag_color']) { ?>
						<a  class="company_article_title" href="<?php echo $this->_url('shop/newshow/'.$SHOP['id'].'/'.$value['shoparticle']['id']);?>" style="color:<?php echo $value['shoparticle']['tag_color'];?>"><b><?php echo $value['shoparticle']['title'];?></b></a>
					<?php } else if($value['shoparticle']['is_blod']) { ?>
						<a  class="company_article_title" href="<?php echo $this->_url('shop/newshow/'.$SHOP['id'].'/'.$value['shoparticle']['id']);?>"><b><?php echo $value['shoparticle']['title'];?></b></a>
					<?php } else if($value['shoparticle']['tag_color']) { ?>
						<a  class="company_article_title" href="<?php echo $this->_url('shop/newshow/'.$SHOP['id'].'/'.$value['shoparticle']['id']);?>" style="color:<?php echo $value['shoparticle']['tag_color'];?>"><?php echo $value['shoparticle']['title'];?></a>
					<?php }else {?>
						<a  class="company_article_title" href="<?php echo $this->_url('shop/newshow/'.$SHOP['id'].'/'.$value['shoparticle']['id']);?>"><?php echo $value['shoparticle']['title'];?></a>
					<?php } ?>	
				
                    <p class="company_article_about">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $value['shoparticle']['description'];?><span class="more2">......</span><a href="<?php echo $this->_url('shop/newshow/'.$SHOP['id'].'/'.$value['shoparticle']['id']);?>">查看详细</a></p>
                </div>
			<?php }?>              
                
                <div class="clear"></div>
            </div>
            <div class="page-box margintop3">
			    <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> '1')) ; ?>" style="width: 42px;" >首页</a>
                <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['page'] -1 )) ; ?>" class="pre">上一页</a>
                <span class="on"><?php  echo $this->params['paging']['shoparticle']['page']; ?></span>
                <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['page'] +1 )) ; ?>" class="next">下一页</a>
                <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['pageCount'])) ; ?>"  style="width: 42px;">尾页</a>               
				<span>共<?php  echo $this->params['paging']['shoparticle']['pageCount']; ?>页</span>
                <span>到<input type="text" class="go-page" name="" />页</span><input type="button" class="go-page-btn" value="跳&nbsp;转" />
             </div>     
            <div class="clear"></div>        
    	</div>
		<!-- 商家新闻 end -->
    </div>
    <!-- main_right end -->

	<div class="clear"></div>
</div>


<!-- 友情链接 -->
<psp:tags     htmlname='links'  iconname='links' />
<!-- 友情链接 end -->

<div class="clear"></div>

<psp:tags     htmlname='default_footer'  iconname='defaultfooter' />
</body>
</html>